/**
 * GenConstants类
 */
export class GenConstants {
    /**
     * 单表（增删改查）
     */
    static TPL_CRUD = "crud";

    /**
     * 树表（增删改查）
     */
    static TPL_TREE = "tree";

    /**
     * 主子表（增删改查）
     */
    static TPL_SUB = "sub";

    /**
     * 树编码字段
     */
    static TREE_CODE = "treeCode";

    /**
     * 树父编码字段
     */
    static TREE_PARENT_CODE = "treeParentCode";

    /**
     * 树名称字段
     */
    static TREE_NAME = "treeName";

    /**
     * 上级菜单ID字段
     */
    static PARENT_MENU_ID = "parentMenuId";

    /**
     * 上级菜单名称字段
     */
    static PARENT_MENU_NAME = "parentMenuName";

    /**
     * 数据库字符串类型
     */
    static COLUMNTYPE_STR = ["char", "varchar", "nvarchar", "varchar2"];

    /**
     * 数据库文本类型
     */
    static COLUMNTYPE_TEXT = ["tinytext", "text", "mediumtext", "longtext"];

    /**
     * 数据库时间类型
     */
    static COLUMNTYPE_TIME = ["datetime", "time", "date", "timestamp"];

    /**
     * 数据库数字类型
     */
    static COLUMNTYPE_NUMBER = [
        "tinyint",
        "smallint",
        "mediumint",
        "int",
        "number",
        "integer",
        "bit",
        "bigint",
        "float",
        "double",
        "decimal"
    ];

    /**
     * 页面不需要编辑字段
     */
    static COLUMNNAME_NOT_EDIT = ["id", "create_by", "create_time", "del_flag"];

    /**
     * 页面不需要显示的列表字段
     */
    static COLUMNNAME_NOT_LIST = [
        "id",
        "create_by",
        "create_time",
        "del_flag",
        "update_by",
        "update_time"
    ];

    /**
     * 页面不需要查询字段
     */
    static COLUMNNAME_NOT_QUERY = [
        "id",
        "create_by",
        "create_time",
        "del_flag",
        "update_by",
        "update_time",
        "remark"
    ];

    /**
     * Entity基类字段
     */
    static BASE_ENTITY = [
        "createBy",
        "createTime",
        "updateBy",
        "updateTime",
        "remark"
    ];

    /**
     * Tree基类字段
     */
    static TREE_ENTITY = [
        "parentName",
        "parentId",
        "orderNum",
        "ancestors",
        "children"
    ];

    /**
     * 文本框
     */
    static HTML_INPUT = "input";

    /**
     * 文本域
     */
    static HTML_TEXTAREA = "textarea";

    /**
     * 下拉框
     */
    static HTML_SELECT = "select";

    /**
     * 单选框
     */
    static HTML_RADIO = "radio";

    /**
     * 复选框
     */
    static HTML_CHECKBOX = "checkbox";

    /**
     * 日期控件
     */
    static HTML_DATETIME = "datetime";

    /**
     * 图片上传控件
     */
    static HTML_IMAGE_UPLOAD = "imageUpload";

    /**
     * 文件上传控件
     */
    static HTML_FILE_UPLOAD = "fileUpload";

    /**
     * 富文本控件
     */
    static HTML_EDITOR = "editor";

    /**
     * 字符串类型
     */
    static TYPE_STRING = "String";

    /**
     * 数字
     */
    static TYPE_NUMBER = "Number";

    /**
     * 整型
     */
    static TYPE_INTEGER = "Integer";

    /**
     * 长整型
     */
    static TYPE_LONG = "Long";

    /**
     * 浮点型
     */
    static TYPE_DOUBLE = "Double";

    /**
     * 高精度计算类型
     */
    static TYPE_BIGDECIMAL = "BigDecimal";

    /**
     * 时间类型
     */
    static TYPE_DATE = "Date";

    /**
     * 模糊查询
     */
    static QUERY_LIKE = "LIKE";

      /**
     * 日期区间查询
     */
      static QUERY_BETWEEN = "BETWEEN";

    /**
     * 相等查询
     */
    static QUERY_EQ = "EQ";

    /**
     * 需要
     */
    static REQUIRE = "1";
}
